package com.ruoyi.web.controller.websocket;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.teaching.domain.WebSocketGroupUser;
import com.ruoyi.teaching.service.WebSocketGroupUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 李志鑫
 * @since 2024-12-07
 */
@RestController
@Api(tags = "webSocket-好友功能")
@RequestMapping("/webSocketGroupUserFunction")
public class WebSocketGroupUserController {
    @Autowired
    WebSocketGroupUserService webSocketGroupUserService;


    @PostMapping("/updateGroupUser")
    @ApiOperation(value = "修改信息", notes = "修改信息")
    public AjaxResult updateGroupUser(@RequestBody WebSocketGroupUser webSocketGroupUser) {
        return webSocketGroupUserService.updateGroupUser(webSocketGroupUser);
    }

}

